import React from "react";
import { withRouter, Route, Switch, match} from "react-router-dom";
import NotFoundException from './exceptions/404';
import DashboardIndx from './dashboard/index';

/** 页面路由集合 */
export const DefaultPageRoutes = withRouter((props: { match: match }) => {
  return (  
    <Switch>      
      <Route exact path={`${props.match.path}dashboard/`} component={DashboardIndx} />   
      <Route component={NotFoundException} />
    </Switch>    
  );
});
